/*
 * @Author: anxia.ack anchenkai@come-future.com
 * @Date: 2025-04-17 22:30:11
 * @LastEditors: anxia.ack anchenkai@come-future.com
 * @LastEditTime: 2025-04-17 22:34:50
 * @FilePath: /free-learning/src/api/course/course-user/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";
import type { ByConsultantIdPageQuery, CourseUser } from "./type";

const BASE_URL = "/api/v1/userCourse";
export const queryByConsultantPage = (
  query: ByConsultantIdPageQuery
): Promise<MyPageResult<CourseUser[]>> => {
  return request.post(`${BASE_URL}/queryByConsultant/page`, query);
};
